<?php
namespace Reseller\Controller;
use Think\Controller;
class OrdersController extends IndexController {
	
public function _initialize(){
	parent::_initialize();	
	$this->model_view="ResellerordersView";//视图名
 	$this->key="Orders.order_id";//排序键		 
 	$this->title_index=L("transactions");//选项卡标题	
}

public function index(){
	
	$mist_arr=array();
	$accute_arr=array('order_id'=>I("order_id"),"mh_oid"=>I("mh_oid"),"card_type"=>I('card_type'),"order_status"=>I("order_status"),
	"order_siteid"=>I("order_siteid"),"bill_email"=>I("bill_email"),'bill_firstname'=>I("bill_firstname"),'bill_lastname'=>I("bill_lastname"),
	"bill_phone"=>I("bill_phone"));
	$cookie_arr=array();	
	$con=searchCon($mist_arr,$accute_arr,$cookie_arr);
	$con['aff_id']=$this->reseller_info['aff_id'];
	if(I('order_time_start') && I('order_time_end')){
		$con['order_time']=array("between",array(I('order_time_start'),I('order_time_end')));
	}	
	
	parent::home($con);
}

public function details(){
	$con['aff_id']=$this->reseller_info['aff_id'];
	$con['Orders.order_id']=I("path.2");
	parent::details($con);	
}
	
}

